import request from '@/utils/request'

// 查询医嘱次数列表
export function listMedicalOrderFrequency(query) {
  return request({
    url: '/pg/medicalOrderFrequency/list',
    method: 'get',
    params: query
  })
}

// 查询医嘱次数所有列表
export function listAllMedicalOrderFrequency(query) {
  return request({
    url: '/pg/medicalOrderFrequency/listAll',
    method: 'get',
    params: query
  })
}

// 查询医嘱次数详细
export function getMedicalOrderFrequency(id) {
  return request({
    url: '/pg/medicalOrderFrequency/' + id,
    method: 'get'
  })
}

// 新增医嘱次数
export function addMedicalOrderFrequency(data) {
  return request({
    url: '/pg/medicalOrderFrequency',
    method: 'post',
    data: data
  })
}

// 修改医嘱次数
export function updateMedicalOrderFrequency(data) {
  return request({
    url: '/pg/medicalOrderFrequency',
    method: 'put',
    data: data
  })
}

// 删除医嘱次数
export function delMedicalOrderFrequency(id) {
  return request({
    url: '/pg/medicalOrderFrequency/' + id,
    method: 'delete'
  })
}
